package jp.co.sn.mml.pojo.tssyoki;


public class TssyokiId implements java.io.Serializable { 

	//画面ID
	private String programID;
	//アイテムID
	private String itemID;

	/** default constructor */
	public TssyokiId(){

	}

	/** full constructor */
	public TssyokiId(String programID,String itemID){
		this.programID = programID;
		this.itemID = itemID;
	}

	//Property accessors
	public String getProgramID(){
		return this.programID;
	}

	public void setProgramID(String programID){
		this.programID=programID;
	}

	public String getItemID(){
		return this.itemID;
	}

	public void setItemID(String itemID){
		this.itemID=itemID;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TssyokiId))
			return false;

		TssyokiId castOther = (TssyokiId) other;

		return ((this.getProgramID() ==  castOther.getProgramID())
				||(this.getProgramID()!=null && castOther.getProgramID() !=null 
					&& castOther.getProgramID() !=null 
					&& this.getProgramID().equals(castOther.getProgramID())))
			&& ((this.getItemID() ==  castOther.getItemID())
				||(this.getItemID()!=null && castOther.getItemID() !=null 
					&& castOther.getItemID() !=null 
					&& this.getItemID().equals(castOther.getItemID())))
;	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getProgramID() == null ? 0 : this.getProgramID().hashCode());
		result = 37 * result
				+ (getItemID() == null ? 0 : this.getItemID().hashCode());
		return result;
	}

}